
package at.fhj.ase.crypto.common.net;

/**
 * Interface for implementation classes that are responsible for sending messages.<br>
 * This could be used e.g. at socket connections or similar where input- and outputstream are behind.
 * <p>
 * Note that only classes should implement that interface that <strong>really</strong> are responsible for dispatching the message over the network!<br>
 * It does not make any sense to make a class implementing it e.g. just for convenience and delegating methods.
 * 
 * @author sfe | www.fh-joanneum.at | Practical Aspects of Cryptography
 */
public interface MessageDispatcher {
  /**
   * Sends the provided message to e.g. a socket connection using the output stream of the socket.
   * 
   * @param msg the message that shall be send over the network connnection
   */
  void sendMessage(final String msg);
}
